package com.three.lab.bean;

import android.os.Parcel;
import android.os.Parcelable;

public class OrderMsgBean implements Parcelable {

    private int id;
    private String conent;
    private String time;
    private String goodsImgUrl;

    public OrderMsgBean() {
    }

    public OrderMsgBean(int id, String conent, String time, String goodsImgUrl) {
        this.id = id;
        this.conent = conent;
        this.time = time;
        this.goodsImgUrl = goodsImgUrl;
    }

    protected OrderMsgBean(Parcel in) {
        id = in.readInt();
        conent = in.readString();
        time = in.readString();
        goodsImgUrl = in.readString();
    }

    public static final Creator<OrderMsgBean> CREATOR = new Creator<OrderMsgBean>() {
        @Override
        public OrderMsgBean createFromParcel(Parcel in) {
            return new OrderMsgBean(in);
        }

        @Override
        public OrderMsgBean[] newArray(int size) {
            return new OrderMsgBean[size];
        }
    };

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getConent() {
        return conent;
    }

    public void setConent(String conent) {
        this.conent = conent;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getGoodsImgUrl() {
        return goodsImgUrl;
    }

    public void setGoodsImgUrl(String goodsImgUrl) {
        this.goodsImgUrl = goodsImgUrl;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(id);
        dest.writeString(conent);
        dest.writeString(time);
        dest.writeString(goodsImgUrl);
    }
}
